package cn.tianya.irock.data.model;

import java.util.Date;

import cn.tianya.irock.bll.SiteManager;

public class Site {
	
	private int siteId;
	private int userId;
	private SiteSettings settings;
	private String name;
	private String url;
	private String description;
	private Date dateCreated;
	
	public SiteSettings getSettings() {
		if (settings == null) {
			settings = SiteManager.getSiteSettingsBySite(siteId);
		}
		return settings;
	}

	public void setSettings(SiteSettings settings) {
		this.settings = settings;
	}
	
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Date getDateCreated() {
		return dateCreated;
	}
	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}
	public int getSiteId() {
		return siteId;
	}
	public void setSiteId(int siteId) {
		this.siteId = siteId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
}
